package cn.itcast.wanxinp2p.account.mapper;

import cn.itcast.wanxinp2p.account.domain.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface AccountMapper {

    int countByMobile(@Param("mobile") String mobile);

    void insert(Account accountLoginDTO);

    Account selectByMobile(String mobile);

    Account selectByUserName(String username);
}